post-mortem examination showed the actor had undiagnosed dementia .
the condition could explain his insomnia , anxiety and paranoid tendencies .
internet searches suggest he knew something else was wrong , expert says .
his wife described how he stuffed watches in socks shortly before death .
autopsy : the last hours of robin williams airs tonight on channel 5 at 9 pm .